﻿using Domain.Entity.System_operation;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.System_operation
{
    public class Arrival_meterConfiger : IEntityTypeConfiguration<Arrival_meter>
    {
        public void Configure(EntityTypeBuilder<Arrival_meter> builder)
        {
            builder.ToTable(nameof(Arrival_meter));
            builder.HasKey(e => e.Arrival_Id);
            builder.Property(e => e.Arrival_Id).HasColumnType("bigint");
            builder.Property(e => e.Billol_Id).HasColumnType("int");
            builder.Property(e => e.Is_arrival).HasColumnType("tinyint").IsRequired().HasComment("审核状态：0、已到站 1、未到站");
        }
    }
}
